package com.vhall.component.entity.preparation.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author rui.zhou
 * @date 2021/5/16 10:13
 */
@Data
public class ScrollingSaveVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "room_id不能为空")
    @ParamName(value = "room_id")
    private String roomId;

    private Integer status;

    @ParamName(value = "scrolling_open")
    @Range(min = 0, max = 1, message = "scrolling_open只能是0或者1")
    private Integer scrollingOpen;

    @Length(max = 20)
    private String text;

    @ParamName(value = "text_type")
    private Integer textType;

    private Integer alpha;

    private Integer size;

    private String color;

    private Integer interval;

    private Integer speed;
    private Integer position;

    private Integer type;

    private String token;
}
